const http = require('http')
const fs = require('fs')

http.createServer(function(req, res) {
  if(req.url === '/favicon.ico') {
    res.writeHead(200);
    res.send();
    return;
  }
  res.writeHead(200);
  // res.send('hello')
  fs.createReadStream(__dirname, '/index.html')
    .pipe(res)
}).listen(3000)